package com.smalls.redshoes.ui.activity;
import android.os.Bundle;
import android.view.View;

import com.smalls.newvideotwo.base.BaseActivity;
import com.smalls.redshoes.R;
import com.smalls.redshoes.ui.fragment.RSHomeFragment;

public class RSHomeActivity extends BaseActivity {
    private View mLoadingView;
    private RSHomeFragment mRSHomeFragment;

    public int onSetContentView() {
        return R.layout.rs_activity_rshome;
    }

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView(savedInstanceState);
        //processLogic(savedInstanceState);
        setListener();
    }

    protected void initView(Bundle savedInstanceState) {
        this.mLoadingView = findViewById(R.id.rshome_loading_view);
    }

    protected void setListener() {
    }

    protected void processLogic(Bundle savedInstanceState) {
        replaceRSHomeFragment();
    }
    private void checkAAA() {
        this.mLoadingView.setVisibility(View.VISIBLE);
    }

    private void replaceRSHomeFragment() {
        if (this.mRSHomeFragment == null) {
            this.mRSHomeFragment = new RSHomeFragment();
        }
        replaceFragment(R.id.rshome_content, this.mRSHomeFragment);
    }

    public void onResume() {
        super.onResume();
    }

    public void onBackPressed() {
        super.onBackPressed();
    }
}
